@extends('admin.base.index')

@section('content')
    <div class="block-area" id="text-input">
                <h3 class="block-title">修改网站配置</h3>
                <form action='/admin/config/{{ $config->id }}' method='post'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <input type='hidden' name='_method' value='PUT'>
                    <div class="row">
                        <div class="col-lg-8">
                            标题：<input name='title' type="text" class="form-control m-b-10" value='{{ $config->title }}'>
                        </div>
                        <div class="col-lg-8">
                            关键字：<input name='keys' type="text" class="form-control m-b-10" value='{{ $config->keys }}'>
                        </div>
                        <div class="col-lg-8">
                            描述：<input name='description' type="text" class="form-control m-b-10" value='{{ $config->description }}'>
                        </div>
                        <div class="col-lg-8">
                            状态：<select class="form-control input-sm m-b-10" name='switch'>
                                <option disabled>--请选择--</option>
                                <option value='0' {{ $config->switch == 0?'selected':'' }}>开启</option>
                                <option value='1' {{ $config->switch == 1?'selected':'' }}>关闭</option>
                            </select>
                        </div>
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='修改'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
    </div>
@stop
